package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;

import java.util.Date;

/**
 * 动态管理表 dongtai
 * 
 * @author chengenjiang
 * @date 2019-07-16
 */
public class Dongtai extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 动态管理Id */
	@Excel(name = "动态管理Id")
	private Long dongtaiId;
	/** 发布人ID */
	private Long fabuId;
	/** 标题 */
	@Excel(name = "标题")
	private String biaoTi;
	/** 内容 */
	@Excel(name = "内容")
	private String context;
	/** 状态 */
	@Excel(name = "状态", readConverterExp = "0=开启,1=关闭")
	private Integer status;
	/** 创建时间 */
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date createTime;
	/** 修改时间 */
	@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date updateTime;
	/** 扩展字段 */
	@Excel(name = "备注")
	private String attribute;
	//会员信息
	private SysUser sysuser;
	//标识符
	private boolean flag = false;

	public void setDongtaiId(Long dongtaiId)
	{
		this.dongtaiId = dongtaiId;
	}

	public Long getDongtaiId()
	{
		return dongtaiId;
	}
	public void setFabuId(Long fabuId)
	{
		this.fabuId = fabuId;
	}

	public Long getFabuId()
	{
		return fabuId;
	}
	public void setBiaoTi(String biaoTi) 
	{
		this.biaoTi = biaoTi;
	}

	public String getBiaoTi() 
	{
		return biaoTi;
	}
	public void setContext(String context) 
	{
		this.context = context;
	}

	public String getContext() 
	{
		return context;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}
	public void setAttribute(String attribute) 
	{
		this.attribute = attribute;
	}

	public String getAttribute() 
	{
		return attribute;
	}
	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dongtaiId", getDongtaiId())
            .append("fabuId", getFabuId())
            .append("biaoTi", getBiaoTi())
            .append("context", getContext())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("attribute", getAttribute())
            .toString();
    }


	public Date getCreateTime() {
		return createTime;
	}


	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	public Date getUpdateTime() {
		return updateTime;
	}


	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}


	public SysUser getSysuser() {
		return sysuser;
	}

	public void setSysuser(SysUser sysuser) {
		this.sysuser = sysuser;
	}

	public boolean isFlag() {
		return flag;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}
}
